<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>bigint类型</title>
</head>
<body>
    <button onclick="bigintType()">请点我</button>

    <script>
        var a = 10
        var b = 20n

        var c = BigInt(30)
        function bigintType(){
            document.write("a=" + a + ",类型是" + typeof(a))
            document.write("b=" + b + ",类型是" + typeof(b))
            document.write("c=" + c + ",类型是" + typeof(c))
        }
    </script>
</body>
</html>